package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * ImportempId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class ImportempId implements java.io.Serializable {

	// Fields

	private String stuid;
	private String stuname;
	private String stusex;
	private String grade;
	private String class_;
	private String stutel;
	private String stuMobile;
	private String stuemail;
	private String fatherPhone;
	private String motherPhone;
	private String teachersid;
	private String teachersname;
	private String teachersdept;
	private String teacherssex;
	private String teachersmobile;
	private String duty;
	private String passwd;
	private String xwtZhId;
	private String xwtBjId;

	// Constructors

	/** default constructor */
	public ImportempId() {
	}

	/** full constructor */
	public ImportempId(String stuid, String stuname, String stusex,
			String grade, String class_, String stutel, String stuMobile,
			String stuemail, String fatherPhone, String motherPhone,
			String teachersid, String teachersname, String teachersdept,
			String teacherssex, String teachersmobile, String duty,
			String passwd, String xwtZhId, String xwtBjId) {
		this.stuid = stuid;
		this.stuname = stuname;
		this.stusex = stusex;
		this.grade = grade;
		this.class_ = class_;
		this.stutel = stutel;
		this.stuMobile = stuMobile;
		this.stuemail = stuemail;
		this.fatherPhone = fatherPhone;
		this.motherPhone = motherPhone;
		this.teachersid = teachersid;
		this.teachersname = teachersname;
		this.teachersdept = teachersdept;
		this.teacherssex = teacherssex;
		this.teachersmobile = teachersmobile;
		this.duty = duty;
		this.passwd = passwd;
		this.xwtZhId = xwtZhId;
		this.xwtBjId = xwtBjId;
	}

	// Property accessors

	@Column(name = "stuid", length = 20)
	public String getStuid() {
		return this.stuid;
	}

	public void setStuid(String stuid) {
		this.stuid = stuid;
	}

	@Column(name = "stuname", length = 20)
	public String getStuname() {
		return this.stuname;
	}

	public void setStuname(String stuname) {
		this.stuname = stuname;
	}

	@Column(name = "stusex", length = 5)
	public String getStusex() {
		return this.stusex;
	}

	public void setStusex(String stusex) {
		this.stusex = stusex;
	}

	@Column(name = "grade", length = 30)
	public String getGrade() {
		return this.grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	@Column(name = "class", length = 30)
	public String getClass_() {
		return this.class_;
	}

	public void setClass_(String class_) {
		this.class_ = class_;
	}

	@Column(name = "stutel", length = 20)
	public String getStutel() {
		return this.stutel;
	}

	public void setStutel(String stutel) {
		this.stutel = stutel;
	}

	@Column(name = "stuMobile", length = 20)
	public String getStuMobile() {
		return this.stuMobile;
	}

	public void setStuMobile(String stuMobile) {
		this.stuMobile = stuMobile;
	}

	@Column(name = "stuemail", length = 30)
	public String getStuemail() {
		return this.stuemail;
	}

	public void setStuemail(String stuemail) {
		this.stuemail = stuemail;
	}

	@Column(name = "FatherPhone", length = 20)
	public String getFatherPhone() {
		return this.fatherPhone;
	}

	public void setFatherPhone(String fatherPhone) {
		this.fatherPhone = fatherPhone;
	}

	@Column(name = "MotherPhone", length = 20)
	public String getMotherPhone() {
		return this.motherPhone;
	}

	public void setMotherPhone(String motherPhone) {
		this.motherPhone = motherPhone;
	}

	@Column(name = "teachersid", length = 20)
	public String getTeachersid() {
		return this.teachersid;
	}

	public void setTeachersid(String teachersid) {
		this.teachersid = teachersid;
	}

	@Column(name = "Teachersname", length = 20)
	public String getTeachersname() {
		return this.teachersname;
	}

	public void setTeachersname(String teachersname) {
		this.teachersname = teachersname;
	}

	@Column(name = "Teachersdept", length = 30)
	public String getTeachersdept() {
		return this.teachersdept;
	}

	public void setTeachersdept(String teachersdept) {
		this.teachersdept = teachersdept;
	}

	@Column(name = "Teacherssex", length = 5)
	public String getTeacherssex() {
		return this.teacherssex;
	}

	public void setTeacherssex(String teacherssex) {
		this.teacherssex = teacherssex;
	}

	@Column(name = "Teachersmobile", length = 20)
	public String getTeachersmobile() {
		return this.teachersmobile;
	}

	public void setTeachersmobile(String teachersmobile) {
		this.teachersmobile = teachersmobile;
	}

	@Column(name = "duty", length = 30)
	public String getDuty() {
		return this.duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	@Column(name = "passwd", length = 20)
	public String getPasswd() {
		return this.passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	@Column(name = "xwt_zh_id", length = 20)
	public String getXwtZhId() {
		return this.xwtZhId;
	}

	public void setXwtZhId(String xwtZhId) {
		this.xwtZhId = xwtZhId;
	}

	@Column(name = "xwt_bj_id", length = 20)
	public String getXwtBjId() {
		return this.xwtBjId;
	}

	public void setXwtBjId(String xwtBjId) {
		this.xwtBjId = xwtBjId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ImportempId))
			return false;
		ImportempId castOther = (ImportempId) other;

		return ((this.getStuid() == castOther.getStuid()) || (this.getStuid() != null
				&& castOther.getStuid() != null && this.getStuid().equals(
				castOther.getStuid())))
				&& ((this.getStuname() == castOther.getStuname()) || (this
						.getStuname() != null && castOther.getStuname() != null && this
						.getStuname().equals(castOther.getStuname())))
				&& ((this.getStusex() == castOther.getStusex()) || (this
						.getStusex() != null && castOther.getStusex() != null && this
						.getStusex().equals(castOther.getStusex())))
				&& ((this.getGrade() == castOther.getGrade()) || (this
						.getGrade() != null && castOther.getGrade() != null && this
						.getGrade().equals(castOther.getGrade())))
				&& ((this.getClass_() == castOther.getClass_()) || (this
						.getClass_() != null && castOther.getClass_() != null && this
						.getClass_().equals(castOther.getClass_())))
				&& ((this.getStutel() == castOther.getStutel()) || (this
						.getStutel() != null && castOther.getStutel() != null && this
						.getStutel().equals(castOther.getStutel())))
				&& ((this.getStuMobile() == castOther.getStuMobile()) || (this
						.getStuMobile() != null
						&& castOther.getStuMobile() != null && this
						.getStuMobile().equals(castOther.getStuMobile())))
				&& ((this.getStuemail() == castOther.getStuemail()) || (this
						.getStuemail() != null
						&& castOther.getStuemail() != null && this
						.getStuemail().equals(castOther.getStuemail())))
				&& ((this.getFatherPhone() == castOther.getFatherPhone()) || (this
						.getFatherPhone() != null
						&& castOther.getFatherPhone() != null && this
						.getFatherPhone().equals(castOther.getFatherPhone())))
				&& ((this.getMotherPhone() == castOther.getMotherPhone()) || (this
						.getMotherPhone() != null
						&& castOther.getMotherPhone() != null && this
						.getMotherPhone().equals(castOther.getMotherPhone())))
				&& ((this.getTeachersid() == castOther.getTeachersid()) || (this
						.getTeachersid() != null
						&& castOther.getTeachersid() != null && this
						.getTeachersid().equals(castOther.getTeachersid())))
				&& ((this.getTeachersname() == castOther.getTeachersname()) || (this
						.getTeachersname() != null
						&& castOther.getTeachersname() != null && this
						.getTeachersname().equals(castOther.getTeachersname())))
				&& ((this.getTeachersdept() == castOther.getTeachersdept()) || (this
						.getTeachersdept() != null
						&& castOther.getTeachersdept() != null && this
						.getTeachersdept().equals(castOther.getTeachersdept())))
				&& ((this.getTeacherssex() == castOther.getTeacherssex()) || (this
						.getTeacherssex() != null
						&& castOther.getTeacherssex() != null && this
						.getTeacherssex().equals(castOther.getTeacherssex())))
				&& ((this.getTeachersmobile() == castOther.getTeachersmobile()) || (this
						.getTeachersmobile() != null
						&& castOther.getTeachersmobile() != null && this
						.getTeachersmobile().equals(
								castOther.getTeachersmobile())))
				&& ((this.getDuty() == castOther.getDuty()) || (this.getDuty() != null
						&& castOther.getDuty() != null && this.getDuty()
						.equals(castOther.getDuty())))
				&& ((this.getPasswd() == castOther.getPasswd()) || (this
						.getPasswd() != null && castOther.getPasswd() != null && this
						.getPasswd().equals(castOther.getPasswd())))
				&& ((this.getXwtZhId() == castOther.getXwtZhId()) || (this
						.getXwtZhId() != null && castOther.getXwtZhId() != null && this
						.getXwtZhId().equals(castOther.getXwtZhId())))
				&& ((this.getXwtBjId() == castOther.getXwtBjId()) || (this
						.getXwtBjId() != null && castOther.getXwtBjId() != null && this
						.getXwtBjId().equals(castOther.getXwtBjId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getStuid() == null ? 0 : this.getStuid().hashCode());
		result = 37 * result
				+ (getStuname() == null ? 0 : this.getStuname().hashCode());
		result = 37 * result
				+ (getStusex() == null ? 0 : this.getStusex().hashCode());
		result = 37 * result
				+ (getGrade() == null ? 0 : this.getGrade().hashCode());
		result = 37 * result
				+ (getClass_() == null ? 0 : this.getClass_().hashCode());
		result = 37 * result
				+ (getStutel() == null ? 0 : this.getStutel().hashCode());
		result = 37 * result
				+ (getStuMobile() == null ? 0 : this.getStuMobile().hashCode());
		result = 37 * result
				+ (getStuemail() == null ? 0 : this.getStuemail().hashCode());
		result = 37
				* result
				+ (getFatherPhone() == null ? 0 : this.getFatherPhone()
						.hashCode());
		result = 37
				* result
				+ (getMotherPhone() == null ? 0 : this.getMotherPhone()
						.hashCode());
		result = 37
				* result
				+ (getTeachersid() == null ? 0 : this.getTeachersid()
						.hashCode());
		result = 37
				* result
				+ (getTeachersname() == null ? 0 : this.getTeachersname()
						.hashCode());
		result = 37
				* result
				+ (getTeachersdept() == null ? 0 : this.getTeachersdept()
						.hashCode());
		result = 37
				* result
				+ (getTeacherssex() == null ? 0 : this.getTeacherssex()
						.hashCode());
		result = 37
				* result
				+ (getTeachersmobile() == null ? 0 : this.getTeachersmobile()
						.hashCode());
		result = 37 * result
				+ (getDuty() == null ? 0 : this.getDuty().hashCode());
		result = 37 * result
				+ (getPasswd() == null ? 0 : this.getPasswd().hashCode());
		result = 37 * result
				+ (getXwtZhId() == null ? 0 : this.getXwtZhId().hashCode());
		result = 37 * result
				+ (getXwtBjId() == null ? 0 : this.getXwtBjId().hashCode());
		return result;
	}

}